#pragma once

#include <QObject>
#include <QVector>
#include "position.h"
#include "port3dapi_global.h"

class PORT3DAPI_EXPORT PositionArray:public QObject
{
	Q_OBJECT
		Q_CLASSINFO("ClassID", "{19bb76e7-92b6-4307-b7b7-0f58edda7a99}")
		Q_CLASSINFO("InterfaceID", "{1f3ce633-ff82-46b1-b032-ec28153b7c4b}")
		Q_CLASSINFO("EventsID", "{2a7b5781-9849-4610-988b-1250e8f4cf99}")
public:
	PositionArray(QObject *parent = 0);
	PositionArray(const PositionArray & u);
	~PositionArray();
public slots:
	void addValue(Position* value);
	void removeValueByIndex(int index);
	int indexOf(Position* value);
	void clear();
	int size();
public:
	QVector<Position*>							_valueVector;
};